package com.zx.controller.gotos;

import com.zx.dto.request.goods.GoodsRequestDto;
import com.zx.dto.response.category.CategoryDto;
import com.zx.dto.response.goods.GoodsDto;
import com.zx.model.goods.Goods;
import com.zx.service.category.CategoryService;
import com.zx.service.goods.GategoryGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author sunkai
 * @date 2022/7/28 0028 18:17
 * @mood zhou xun
 */
@Controller
@RequestMapping("/category")
public class CategoryController {
    @Autowired
    private CategoryService categoryService;

    @RequestMapping("/queryType")
    @ResponseBody
    public List<CategoryDto> queryType(){
       return categoryService.queryType();
    }
}
